<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.2</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <#include "/comm/module-edit.ftl"/>
</head>
<style type="text/css">
    .layui-form-item .layui-input-inline {
        min-width: 450px;
    }

    .layui-form-item .layui-input-block {
        min-width: 450px;
    }
    .layui-form-pane .layui-form-text .layui-textarea{
        min-height: 500px;
    }

</style>
<body>
<div class="layui-div-body">
    <div class="layui-fluid layui-div-edit">
        <form class="layui-form layui-form-pane">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">编码</label>
                    <div class="layui-input-block">
                        <input type="text" name="code" lay-verify="required"
                               placeholder="请输入编码" class="layui-input" lay-reqtext="请填写编码"
                               value="${info.code!}" <#if info._id!=''>disabled<#else>111111</#if> >
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" lay-verify="required"
                               placeholder="请输入名称" class="layui-input" lay-reqtext="请填写名称"
                               value="${info.name!}">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">参数值INT</label>
                    <div class="layui-input-block">
                        <input type="number" name="value_li" min="0" step="1" lay-affix="number"
                               placeholder="参数Int" class="layui-input" value="${info.value_li!}">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">参数值Double</label>
                    <div class="layui-input-block">
                        <input type="number" name="value_lf" min="0" step="1" lay-affix="number"
                               placeholder="参数Double" class="layui-input" value="${info.value_lf!}">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">参数值String</label>
                    <div class="layui-input-block">
                        <input type="text" name="value_vc"
                               placeholder="参数String" class="layui-input" value="${info.value_vc!}">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" name="description"
                               placeholder="备注" class="layui-input" value="${info.description!}">
                    </div>
                </div>
            </div>
            <div class="layui-form-item  layui-form-text">
                <label class="layui-form-label">参数值Text</label>
                <div class="layui-input-block">
                    <textarea name="value_t" placeholder="请输入内容" class="layui-textarea">${info.value_t}</textarea>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <div class="layui-footer">
                        <button class="layui-btn" lay-submit="" lay-filter="save">立即提交
                        </button>
                        <#if info._id ==''>
                            <button type="reset" class="layui-btn layui-btn-primary" id="btn-reset">重置</button>
                        </#if>
                        <input type="hidden" id="_id" name="_id" value="${info._id}"/>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    layui.use("edit", function () {
        let edit = layui.edit;
        edit.render()
    });
</script>
</body>

</html>